<?php

use think\facade\Route;


Route::group('admin', function () {
    //套餐列表
    Route::get('AdminPlace/packageList', 'AdminPlace/packageList');
    //套餐下拉框
    Route::get('AdminPlace/packageSelect', 'AdminPlace/packageSelect');
    //添加套餐
    Route::post('AdminPlace/packageAdd', 'AdminPlace/packageAdd');
    //编辑套餐
    Route::post('AdminPlace/packageUpdate', 'AdminPlace/packageUpdate');
    //套餐详情
    Route::get('AdminPlace/packageInfo', 'AdminPlace/packageInfo');
    //场地列表
    Route::get('AdminPlace/placeList', 'AdminPlace/placeList');
    //场地详情
    Route::get('AdminPlace/placeInfo', 'AdminPlace/placeInfo');
    //添加场地
    Route::post('AdminPlace/placeAdd', 'AdminPlace/placeAdd');

    Route::get('AdminPlace/placeSelect', 'AdminPlace/placeSelect');
    //编辑场地
    Route::post('AdminPlace/placeUpdate', 'AdminPlace/placeUpdate');
    //获取档期 date place_id
    Route::get('AdminPlace/monthDateList', 'AdminPlace/monthDateList');

    Route::get('AdminPlace/configInfo', 'AdminPlace/configInfo');

    Route::post('AdminPlace/configUpdate', 'AdminPlace/configUpdate');

    Route::get('AdminAtv/contentList', 'AdminAtv/contentList');

    Route::get('AdminAtv/contentSelect', 'AdminAtv/contentSelect');

    Route::get('AdminAtv/contentInfo', 'AdminAtv/contentInfo');

    Route::post('AdminAtv/contentAdd', 'AdminAtv/contentAdd');

    Route::post('AdminAtv/contentUpdate', 'AdminAtv/contentUpdate');
    //评论列表
    Route::get('AdminPlace/placeEvaluateList', 'AdminPlace/placeEvaluateList');
    //评价详情
    Route::get('AdminPlace/evaluateInfo', 'AdminPlace/evaluateInfo');
    //修改评论
    Route::post('AdminPlace/evaluateUpdate', 'AdminPlace/evaluateUpdate');
    //订单列表
    Route::get('AdminOrder/orderList', 'AdminOrder/orderList');
    //订单详情
    Route::get('AdminOrder/orderInfo', 'AdminOrder/orderInfo');
    //退款列表
    Route::get('AdminOrder/refundList', 'AdminOrder/refundList');
    //退款详情
    Route::get('AdminOrder/refundInfo', 'AdminOrder/refundInfo');
    //同意退款（id,price,text）
    Route::post('AdminOrder/passRefundOrder', 'AdminOrder/passRefundOrder');
    //拒绝退款
    Route::post('AdminOrder/noPassRefund', 'AdminOrder/noPassRefund');

    Route::get('AdminExcel/orderExcel', 'AdminExcel/orderExcel');




});

Route::get('AdminExcel/orderExcel', 'AdminExcel/orderExcel');



//商城后端路由表
Route::group('app', function () {
    //场地预约首页
    Route::get('IndexPlace/index', 'IndexPlace/index');
    //切换公司列表(latitude,long,title)
    Route::get('IndexPlace/companyList', 'IndexPlace/companyList');
    //场地列表
    Route::get('IndexPlace/placeList', 'IndexPlace/placeList');
    //场地详情
    Route::get('IndexPlace/placeInfo', 'IndexPlace/placeInfo');
    //场地评价列表（place_id）
    Route::get('IndexPlace/placeEvaluateList', 'IndexPlace/placeEvaluateList');
    //添加场地评价(order_id)
    Route::post('IndexPlace/evaluateAdd', 'IndexPlace/evaluateAdd');
    //评价详情
    Route::get('IndexPlace/evaluateInfo', 'IndexPlace/evaluateInfo');
    //修改评价（id，status）
    Route::post('IndexPlace/evaluateUpdate', 'IndexPlace/evaluateUpdate');
    //套餐列表（传了place_id直查该场地的套餐，不传查询当前公司下所有场地的套餐）
    Route::get('IndexPlace/packageList', 'IndexPlace/packageList');
    //场地档期（place_id）
    Route::get('IndexPlace/monthDateList', 'IndexPlace/monthDateList');
    //场地预约下单(place_id：场地id，user_name，mobile，text:备注,time_date:档期多少号时间搓，time_type：1中午 2晚上，staff_id：员工ID)
    Route::post('IndexPlace/payOrder', 'IndexPlace/payOrder');
    //重新下单
    Route::post('IndexPlace/rePayOrder', 'IndexPlace/rePayOrder');
    //用户订单列表
    Route::get('IndexPlace/orderList', 'IndexPlace/orderList');
    //订单详情
    Route::get('IndexPlace/orderInfo', 'IndexPlace/orderInfo');

    Route::get('IndexPlace/tmpList', 'IndexPlace/tmpList');
    //申请退款
    Route::post('IndexPlace/applyOrder', 'IndexPlace/applyOrder');
    //取消退款
    Route::post('IndexPlace/cancelRefund', 'IndexPlace/cancelRefund');
    //退款列表
    Route::get('IndexPlace/refundList', 'IndexPlace/refundList');
    //退款详情
    Route::get('IndexPlace/refundInfo', 'IndexPlace/refundInfo');

    Route::get('IndexPlace/configInfo', 'IndexPlace/configInfo');
    //取消订单
    Route::post('IndexPlace/cancelOrder', 'IndexPlace/cancelOrder');
    //员工端订单列表
    Route::get('IndexStaff/orderList', 'IndexStaff/orderList');
    //员工端订单详情
    Route::get('IndexStaff/orderInfo', 'IndexStaff/orderInfo');
    //员工端退款列表
    Route::get('IndexStaff/refundList', 'IndexStaff/refundList');
    //员工端退款详情
    Route::get('IndexStaff/refundInfo', 'IndexStaff/refundInfo');
    //员工端同意退款
    Route::post('IndexStaff/passRefundOrder', 'IndexStaff/passRefundOrder');
    //员工端拒绝退款
    Route::post('IndexStaff/noPassRefund', 'IndexStaff/noPassRefund');








});

















